package com.geek.framework.study.config.microprofile.source;

import java.util.Map;


public class SimpleConfigSource extends MapBaseConfigSource {

    final Map<String, String> source;

    public SimpleConfigSource(String name, int ordinal, Map<String, String> source) {
        super(name, ordinal);
        this.source = source;
    }

    @Override
    protected void prepareConfigData(Map<String, String> configData) {
        configData.putAll(source);
    }
}
